package com.quwan.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author quan
 * @date 2021-12-08 21:19
 */
@Getter
@AllArgsConstructor
public enum LoginEnum {
    // 0-ios 1-wx 2-手机登录 3-密码 4-游客
    APPLE("0", "appLogin", "ios", "IOS登录"),
    WX("1", "appLogin", "wx", "微信登录"),
    PHONE("2", "appLogin", "phone", "手机登录"),
    PASSWORD("3", "appLogin", "password", "密码登录"),
    GUEST("4", "appLogin", "guest", "游客登录");
    String type;
    String component;
    String method;
    String tips;

    public static LoginEnum getByType(String type) {
        for (LoginEnum value : values()) {
            if (value.getType().equals(type)) {
                return value;
            }
        }
        return null;
    }


}
